package com.cc.model

import com.mybatisflex.annotation.Column
import com.mybatisflex.annotation.Id
import com.mybatisflex.annotation.KeyType
import com.mybatisflex.annotation.Table

/**
 * 实体类。
 *
 * @author cc
 * @since 1.0
 */
@Table(value = "di_category")
class DiCategory {
    /**
     * 主键id
     */
    @Id(keyType = KeyType.Auto)
    var id: String = ""

    /**
     * 整合名称
     */
    @Column(value = "name")
    var name: String = ""

    /**
     * 父级id
     */
    @Column(value = "category_pid")
    var categoryPid: Long? = null

    /**
     * 资源库id
     */
    @Column(value = "rep_id")
    var repId: String = ""

    /**
     * 对应资源库目录id
     */
    @Column(value = "category_id")
    var categoryId: String = ""

    /**
     * 文件路径
     */
    @Column(value = "path")
    var path: String = ""

    /**
     * 树层级编码
     */
    @Column(value = "code")
    var code: String = ""

    /**
     * 1不允许删除，0允许删除
     */
    @Column(value = "is_default")
    var default: Int = 0
}
